package gof.com.yew.factory.abstractfactory;

public class ColorFactory implements AbstractFactory {

	@Override
	public Shape getShape(String shape) {
		return null;
	}

	@Override
	public Color getColor(String color) {
		Color c = null;
		if("Red".equals(color)) {
			c = new Red();
		}else if("Blue".equals(color)) {
			c = new Blue();
		}
		return c;
	}

}
